package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 教练考试信息表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClubStaffScore extends Model<ClubStaffScore> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 学堂id
     */
    private String growCollegeId;

    /**
     * 人员id
     */
    private String staffId;

    /**
     * 俱乐部名称
     */
    private String clubName;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 人员姓名
     */
    private String staffName;

    /**
     * 头像url
     */
    private String staffAvatar;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 答题总得分
     */
    private Double examScore;

    /**
     * 答题正确数量
     */
    private Integer examSuccess;

    /**
     * 答题错误数量
     */
    private Integer examError;

    /**
     * 学习时长
     */
    private Double studyHours;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 学习次数
     */
    private Integer studyNum;

    /**
     * 考评次数
     */
    private Integer examNum;

    /**
     * 0-学习 1-考评
     */
    private Integer type;


    public static final String ID = "id";

    public static final String GROW_COLLEGE_ID = "grow_college_id";

    public static final String STAFF_ID = "staff_id";

    public static final String CLUB_NAME = "club_name";

    public static final String CLUB_ID = "club_id";

    public static final String STAFF_NAME = "staff_name";

    public static final String STAFF_AVATAR = "staff_avatar";

    public static final String CREATE_TIME = "create_time";

    public static final String EXAM_SCORE = "exam_score";

    public static final String EXAM_SUCCESS = "exam_success";

    public static final String EXAM_ERROR = "exam_error";

    public static final String STUDY_HOURS = "study_hours";

    public static final String SHOP_ID = "shop_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String STUDY_NUM = "study_num";

    public static final String EXAM_NUM = "exam_num";

    public static final String TYPE = "type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
